use serde::Deserialize;
use serde::Serialize;
use surrealdb::sql::Thing;
use ts_rs::TS;
use super::FudaThing;

/// 资产负债表
///
///
#[derive(Debug, Serialize, Deserialize, Default, TS, Clone)]
#[ts(export)]
pub struct F10bblance {
    /// 唯一标识符，由security_id.klt.klts 组成唯一标识 e.g. SH.STOCK.600519.5.1709093447762 5分钟K线
    #[ts(as = "Option<FudaThing>")]
    pub id: Option<Thing>,

    /// 报告日期
    pub report_date: Option<String>,
    /// 报告类型
    pub report_type: Option<String>,
    /// 报告日期名称
    pub report_date_name: Option<String>,
    /// 公告日期
    pub notice_date: Option<String>,
    /// 更新日期
    pub update_date: Option<String>,
    /// 现金及存放中央银行款项
    pub cash_deposit_pbc: Option<String>,
    /// 存放同业款项
    pub deposit_interbank: Option<String>,
    /// 贵金属
    pub precious_metal: Option<String>,
    /// 拆出资金
    pub lend_fund: Option<String>,
    /// 衍生金融资产
    pub fvtpl_finasset: Option<String>,
    pub derive_finasset: Option<String>,
    /// 买入返售金融资产
    pub buy_resale_finasset: Option<String>,
    #[serde(rename = "ACCOUNTS_RECE")]
    pub accounts_rece: Option<String>,
    #[serde(rename = "FINANCE_RECE")]
    pub finance_rece: Option<String>,
    #[serde(rename = "INTEREST_RECE")]
    pub interest_rece: Option<String>,
    /// 发放贷款及垫款
    pub loan_advance: Option<String>,
    /// 交易性金融资产
    pub trade_finasset_notfvtpl: Option<String>,
    /// 债权投资
    pub creditor_invest: Option<String>,
    /// 其他债权投资
    pub other_creditor_invest: Option<String>,
    /// 其他权益工具投资
    pub other_equity_invest: Option<String>,
    #[serde(rename = "AVAILABLE_SALE_FINASSET")]
    pub available_sale_finasset: Option<String>,
    #[serde(rename = "HOLD_MATURITY_INVEST")]
    pub hold_maturity_invest: Option<String>,
    #[serde(rename = "INVEST_RECE")]
    pub invest_rece: Option<String>,
    /// 摊销费用金融资产
    pub amortize_cost_finasset: Option<String>,
    /// 可供出售金融资产
    pub fvtoci_finasset: Option<String>,
    /// 持有待售资产
    pub holdsale_asset: Option<String>,
    /// 长期股权投资
    pub long_equity_invest: Option<String>,
    /// 投资子公司
    pub invest_subsidiary: Option<String>,
    /// 投资联营企业
    pub invest_joint: Option<String>,
    /// 投资性房地产
    pub invest_realestate: Option<String>,
    /// 固定资产
    pub fixed_asset: Option<String>,
    #[serde(rename = "CIP")]
    pub cip: Option<String>,
    /// 使用权资产
    pub useright_asset: Option<String>,
    /// 商誉
    pub intangible_asset: Option<String>,
    #[serde(rename = "GOODWILL")]
    pub goodwill: Option<String>,
    #[serde(rename = "PEND_MORTGAGE_ASSET")]
    pub pend_mortgage_asset: Option<String>,
    #[serde(rename = "MORTGAGE_ASSET_IMPAIRMENT")]
    pub mortgage_asset_impairment: Option<String>,
    #[serde(rename = "NET_PENDMORTGAGE_ASSET")]
    pub net_pendmortgage_asset: Option<String>,
    /// 递延所得税资产
    pub defer_tax_asset: Option<String>,
    #[serde(rename = "LONG_PREPAID_EXPENSE")]
    pub long_prepaid_expense: Option<String>,
    /// 其他资产
    pub other_asset: Option<String>,
    #[serde(rename = "ASSET_OTHER")]
    pub asset_other: Option<String>,
    #[serde(rename = "ASSET_BALANCE")]
    pub asset_balance: Option<String>,
    /// 资产总计
    pub total_assets: Option<String>,
    /// 向中央银行借款
    pub loan_pbc: Option<String>,
    /// 同业及其他金融机构存放款项
    pub iofi_deposit: Option<String>,
    /// 拆入资金
    pub borrow_fund: Option<String>,
    /// 交易性金融负债
    pub trade_finliab_notfvtpl: Option<String>,
    #[serde(rename = "FVTPL_FINLIAB")]
    pub fvtpl_finliab: Option<String>,
    #[serde(rename = "TRADE_FINLIAB")]
    pub trade_finliab: Option<String>,
    #[serde(rename = "APPOINT_FVTPL_FINLIAB")]
    pub appoint_fvtpl_finliab: Option<String>,
    /// 衍生金融负债
    pub derive_finliab: Option<String>,
    /// 卖出回购金融资产款
    pub sell_repo_finasset: Option<String>,

    /// 吸收存款
    pub accept_deposit: Option<String>,
    /// 外部汇款
    pub outward_remit: Option<String>,
    /// 应付银行承兑汇票
    pub cd_note_payable: Option<String>,
    /// 存单
    pub deposit_certificate: Option<String>,
    /// 应付职工薪酬
    pub staff_salary_payable: Option<String>,
    /// 应交税费
    pub tax_payable: Option<String>,
    /// 应付利息
    pub interest_payable: Option<String>,
    /// 应付股利
    pub dividend_payable: Option<String>,
    /// 预计负债
    pub predict_liab: Option<String>,
    /// 递延所得税负债
    pub defer_tax_liab: Option<String>,
    /// 摊销费用负债
    pub amortize_cost_finliab: Option<String>,
    /// 持有待售负债
    pub holdsale_liab: Option<String>,
    /// 应付债券
    pub bond_payable: Option<String>,
    /// 应付次级债券
    pub subbond_payable: Option<String>,
    /// 应付优先股
    pub preferred_shares_paybale: Option<String>,
    /// 应付永续债
    pub perpetual_bond_paybale: Option<String>,
    /// 租赁负债
    pub lease_liab: Option<String>,
    /// 其他负债
    pub other_liab: Option<String>,
    /// 其他负债
    pub liab_other: Option<String>,
    /// 负债合计
    pub liab_balance: Option<String>,
    /// 负债总计
    pub total_liabilities: Option<String>,
    /// 股本
    pub share_capital: Option<String>,
    /// 其他权益工具
    pub other_equity_tool: Option<String>,
    /// 优先股
    pub preferred_shares: Option<String>,
    /// 永续债
    pub perpetual_bond: Option<String>,
    /// 其他权益-其他
    pub other_equity_other: Option<String>,
    /// 资本公积
    pub capital_reserve: Option<String>,
    /// 投资重估储备
    pub invest_revalue_reserve: Option<String>,
    /// 减：库藏股
    pub treasury_shares: Option<String>,
    /// 其他综合收益
    pub other_compre_income: Option<String>, 
    /// 利益风险准备
    pub hedge_reserve: Option<String>, 
    /// 盈余公积
    pub surplus_reserve: Option<String>, 
    /// 一般风险准备
    pub general_risk_reserve: Option<String>, 
    /// 未分配利润
    pub unassign_rprofit: Option<String>, 
    /// 分配股利
    pub advice_assign_dividend: Option<String>, 
    /// 转换差额
    pub convert_diff: Option<String>, 
    /// 母公司其他权益
    pub parent_equity_other: Option<String>, 
    /// 母公司股东权益
    pub parent_equity_balance: Option<String>, 
    /// 归属于母公司股东权益总计
    pub total_parent_equity: Option<String>, 
    /// 少数股东权益
    pub minority_equity: Option<String>, 
    /// 股东权益其他
    pub equity_other: Option<String>, 
    /// 股东权益
    pub equity_balance: Option<String>, 
    /// 股东权益合计
    pub total_equity: Option<String>, 
    /// 负债和股东权益其他
    pub liab_equity_other: Option<String>, 
    /// 负债和股东权益
    pub liab_equity_balance: Option<String>, 
    /// 负债和股东权益总计
    pub total_liab_equity: Option<String>, 
    /// 代理业务资产
    pub agent_business_asset: Option<String>, 
    /// 代理业务负债
    pub agent_business_liab: Option<String>, 
    /// 应付短期融资款
    pub short_fin_payable: Option<String>, 
    /// 预提费用
    pub accrued_expense: Option<String>, 
    /// 应付账款
    pub accounts_payable: Option<String>, 
    /// 应付票据
    pub note_payable: Option<String>, 
    /// 应收票据
    pub note_rece: Option<String>, 
    /// 意见类型
    pub opinion_type: Option<String>, 
    /// 原意见类型
    pub osopinion_type: Option<String>, 
    /// 存放央行及同业款项净增加额同比增长率
    pub cash_deposit_pbc_yoy: Option<String>, 
    /// 银行间存款净增加额同比增长率
    pub deposit_interbank_yoy: Option<String>, 
    /// 贵金属同比增长率
    pub precious_metal_yoy: Option<String>, 
    /// 拆借资金同比增长率
    pub lend_fund_yoy: Option<String>, 
    #[serde(rename = "FVTPL_FINASSET_YOY")]
    pub fvtpl_finasset_yoy: Option<String>, // 以公允价值计量且其变动计入当期损益的金融资产同比增长率
    #[serde(rename = "TRADE_FINASSET_YOY")]
    pub trade_finasset_yoy: Option<String>, // 交易性金融资产同比增长率
    #[serde(rename = "APPOINT_FVTPL_FINASSET_YOY")]
    pub appoint_fvtpl_finasset_yoy: Option<String>, // 指定为以公允价值计量且其变动计入当期损益的金融资产同比增长率
    #[serde(rename = "DERIVE_FINASSET_YOY")]
    pub derive_finasset_yoy: Option<String>, // 衍生金融资产同比增长率
    #[serde(rename = "BUY_RESALE_FINASSET_YOY")]
    pub buy_resale_finasset_yoy: Option<String>, // 买入返售金融资产同比增长率
    #[serde(rename = "ACCOUNTS_RECE_YOY")]
    pub accounts_rece_yoy: Option<String>, // 应收账款同比增长率
    #[serde(rename = "FINANCE_RECE_YOY")]
    pub finance_rece_yoy: Option<String>, // 应收款项同比增长率
    #[serde(rename = "INTEREST_RECE_YOY")]
    pub interest_rece_yoy: Option<String>, // 应收利息同比增长率
    #[serde(rename = "LOAN_ADVANCE_YOY")]
    pub loan_advance_yoy: Option<String>, // 贷款及垫款同比增长率
    #[serde(rename = "TRADE_FINASSET_NOTFVTPL_YOY")]
    pub trade_finasset_notfvtpl_yoy: Option<String>, // 持有至到期投资同比增长率
    #[serde(rename = "CREDITOR_INVEST_YOY")]
    pub creditor_invest_yoy: Option<String>, // 债权投资同比增长率
    #[serde(rename = "OTHER_CREDITOR_INVEST_YOY")]
    pub other_creditor_invest_yoy: Option<String>, // 其他债权投资同比增长率
    #[serde(rename = "OTHER_EQUITY_INVEST_YOY")]
    pub other_equity_invest_yoy: Option<String>, // 其他权益工具投资同比增长率
    #[serde(rename = "AVAILABLE_SALE_FINASSET_YOY")]
    pub available_sale_finasset_yoy: Option<String>, // 可供出售金融资产同比增长率
    #[serde(rename = "HOLD_MATURITY_INVEST_YOY")]
    pub hold_maturity_invest_yoy: Option<String>, // 持有至到期投资同比增长率
    #[serde(rename = "INVEST_RECE_YOY")]
    pub invest_rece_yoy: Option<String>, // 投资收益同比增长率
    #[serde(rename = "AMORTIZE_COST_FINASSET_YOY")]
    pub amortize_cost_finasset_yoy: Option<String>, // 金融资产减值准备同比增长率
    #[serde(rename = "FVTOCI_FINASSET_YOY")]
    pub fvtoci_finasset_yoy: Option<String>, // 可供出售金融资产同比增长率
    #[serde(rename = "HOLDSALE_ASSET_YOY")]
    pub holdsale_asset_yoy: Option<String>, // 持有至到期投资同比增长率
    #[serde(rename = "LONG_EQUITY_INVEST_YOY")]
    pub long_equity_invest_yoy: Option<String>, // 长期股权投资同比增长率
    #[serde(rename = "INVEST_SUBSIDIARY_YOY")]
    pub invest_subsidiary_yoy: Option<String>, // 投资子公司同比增长率
    #[serde(rename = "INVEST_JOINT_YOY")]
    pub invest_joint_yoy: Option<String>, // 投资联营企业同比增长率
    #[serde(rename = "INVEST_REALESTATE_YOY")]
    pub invest_realestate_yoy: Option<String>, // 投资房地产同比增长率
    #[serde(rename = "FIXED_ASSET_YOY")]
    pub fixed_asset_yoy: Option<String>, // 固定资产同比增长率
    #[serde(rename = "CIP_YOY")]
    pub cip_yoy: Option<String>, // 在建工程同比增长率
    #[serde(rename = "USERIGHT_ASSET_YOY")]
    pub useright_asset_yoy: Option<String>, // 使用权资产同比增长率
    #[serde(rename = "INTANGIBLE_ASSET_YOY")]
    pub intangible_asset_yoy: Option<String>, // 无形资产同比增长率
    #[serde(rename = "GOODWILL_YOY")]
    pub goodwill_yoy: Option<String>, // 商誉同比增长率
    #[serde(rename = "PEND_MORTGAGE_ASSET_YOY")]
    pub pend_mortgage_asset_yoy: Option<String>, // 待摊贷款同比增长率
    #[serde(rename = "MORTGAGE_ASSET_IMPAIRMENT_YOY")]
    pub mortgage_asset_impairment_yoy: Option<String>, // 抵押贷款减值准备同比增长率
    #[serde(rename = "NET_PENDMORTGAGE_ASSET_YOY")]
    pub net_pendmortgage_asset_yoy: Option<String>, // 净待摊贷款同比增长率
    #[serde(rename = "DEFER_TAX_ASSET_YOY")]
    pub defer_tax_asset_yoy: Option<String>, // 递延所得税资产同比增长率
    #[serde(rename = "LONG_PREPAID_EXPENSE_YOY")]
    pub long_prepaid_expense_yoy: Option<String>, // 长期待摊费用同比增长率
    #[serde(rename = "OTHER_ASSET_YOY")]
    pub other_asset_yoy: Option<String>, // 其他资产同比增长率
    #[serde(rename = "ASSET_OTHER_YOY")]
    pub asset_other_yoy: Option<String>, // 资产其他项目同比增长率
    #[serde(rename = "ASSET_BALANCE_YOY")]
    pub asset_balance_yoy: Option<String>, // 资产余额同比增长率
    #[serde(rename = "TOTAL_ASSETS_YOY")]
    pub total_assets_yoy: Option<String>, // 资产总计同比增长率
    #[serde(rename = "LOAN_PBC_YOY")]
    pub loan_pbc_yoy: Option<String>, // 存放央行款项净增加额同比增长率
    #[serde(rename = "IOFI_DEPOSIT_YOY")]
    pub iofi_deposit_yoy: Option<String>, // 向中央银行借款净增加额同比增长率
    #[serde(rename = "BORROW_FUND_YOY")]
    pub borrow_fund_yoy: Option<String>, // 借款净增加额同比增长率
    #[serde(rename = "TRADE_FINLIAB_NOTFVTPL_YOY")]
    pub trade_finliab_notfvtpl_yoy: Option<String>, // 非按公允价值计量且其变动计入当期损益的交易性金融负债同比增长率
    #[serde(rename = "FVTPL_FINLIAB_YOY")]
    pub fvtpl_finliab_yoy: Option<String>, // 按公允价值计量且其变动计入当期损益的金融负债同比增长率
    #[serde(rename = "TRADE_FINLIAB_YOY")]
    pub trade_finliab_yoy: Option<String>, // 交易性金融负债同比增长率
    #[serde(rename = "APPOINT_FVTPL_FINLIAB_YOY")]
    pub appoint_fvtpl_finliab_yoy: Option<String>, // 指定为以公允价值计量且其变动计入当期损益的金融负债同比增长率
    #[serde(rename = "DERIVE_FINLIAB_YOY")]
    pub derive_finliab_yoy: Option<String>, // 衍生金融负债同比增长率
    #[serde(rename = "SELL_REPO_FINASSET_YOY")]
    pub sell_repo_finasset_yoy: Option<String>, // 卖出回购金融资产同比增长率
    #[serde(rename = "ACCEPT_DEPOSIT_YOY")]
    pub accept_deposit_yoy: Option<String>, // 吸收存款同比增长率
    #[serde(rename = "OUTWARD_REMIT_YOY")]
    pub outward_remit_yoy: Option<String>, // 外汇款项同比增长率
    #[serde(rename = "CD_NOTE_PAYABLE_YOY")]
    pub cd_note_payable_yoy: Option<String>, // 应付短期债券同比增长率
    #[serde(rename = "DEPOSIT_CERTIFICATE_YOY")]
    pub deposit_certificate_yoy: Option<String>, // 存单同比增长率
    #[serde(rename = "STAFF_SALARY_PAYABLE_YOY")]
    pub staff_salary_payable_yoy: Option<String>, // 应付职工薪酬同比增长率
    #[serde(rename = "TAX_PAYABLE_YOY")]
    pub tax_payable_yoy: Option<String>, // 应交税费同比增长率
    #[serde(rename = "INTEREST_PAYABLE_YOY")]
    pub interest_payable_yoy: Option<String>, // 应付利息同比增长率
    #[serde(rename = "DIVIDEND_PAYABLE_YOY")]
    pub dividend_payable_yoy: Option<String>, // 应付股利同比增长率
    #[serde(rename = "PREDICT_LIAB_YOY")]
    pub predict_liab_yoy: Option<String>, // 预计负债同比增长率
    #[serde(rename = "DEFER_TAX_LIAB_YOY")]
    pub defer_tax_liab_yoy: Option<String>, // 递延所得税负债同比增长率
    #[serde(rename = "AMORTIZE_COST_FINLIAB_YOY")]
    pub amortize_cost_finliab_yoy: Option<String>, // 金融负债减值准备同比增长率
    #[serde(rename = "HOLDSALE_LIAB_YOY")]
    pub holdsale_liab_yoy: Option<String>, // 持有至到期投资负债同比增长率
    #[serde(rename = "BOND_PAYABLE_YOY")]
    pub bond_payable_yoy: Option<String>, // 应付债券同比增长率
    #[serde(rename = "SUBBOND_PAYABLE_YOY")]
    pub subbond_payable_yoy: Option<String>, // 应付次级债券同比增长率
    #[serde(rename = "PREFERRED_SHARES_PAYBALE_YOY")]
    pub preferred_shares_paybale_yoy: Option<String>, // 应付优先股同比增长率
    #[serde(rename = "PERPETUAL_BOND_PAYBALE_YOY")]
    pub perpetual_bond_paybale_yoy: Option<String>, // 应付永续债同比增长率
    #[serde(rename = "LEASE_LIAB_YOY")]
    pub lease_liab_yoy: Option<String>, // 租赁负债同比增长率
    #[serde(rename = "OTHER_LIAB_YOY")]
    pub other_liab_yoy: Option<String>, // 其他负债同比增长率
    #[serde(rename = "LIAB_OTHER_YOY")]
    pub liab_other_yoy: Option<String>, // 负债其他同比增长率
    #[serde(rename = "LIAB_BALANCE_YOY")]
    pub liab_balance_yoy: Option<String>, // 负债合计同比增长率
    #[serde(rename = "TOTAL_LIABILITIES_YOY")]
    pub total_liabilities_yoy: Option<String>, // 负债和所有者权益总计同比增长率
    #[serde(rename = "SHARE_CAPITAL_YOY")]
    pub share_capital_yoy: Option<String>, // 股本同比增长率
    #[serde(rename = "OTHER_EQUITY_TOOL_YOY")]
    pub other_equity_tool_yoy: Option<String>, // 其他权益工具同比增长率
    #[serde(rename = "PREFERRED_SHARES_YOY")]
    pub preferred_shares_yoy: Option<String>, // 优先股同比增长率
    #[serde(rename = "PERPETUAL_BOND_YOY")]
    pub perpetual_bond_yoy: Option<String>, // 永续债同比增长率
    #[serde(rename = "OTHER_EQUITY_OTHER_YOY")]
    pub other_equity_other_yoy: Option<String>, // 其他权益其他同比增长率
    #[serde(rename = "CAPITAL_RESERVE_YOY")]
    pub capital_reserve_yoy: Option<String>, // 资本公积同比增长率
    #[serde(rename = "INVEST_REString_RESERVE_YOY")]
    pub invest_reString_reserve_yoy: Option<String>, // 投资重估准备同比增长率
    #[serde(rename = "TREASURY_SHARES_YOY")]
    pub treasury_shares_yoy: Option<String>, // 持有的库存股同比增长率
    #[serde(rename = "OTHER_COMPRE_INCOME_YOY")]
    pub other_compre_income_yoy: Option<String>, // 其他综合收益同比增长率
    #[serde(rename = "HEDGE_RESERVE_YOY")]
    pub hedge_reserve_yoy: Option<String>, // 利益风险准备同比增长率
    #[serde(rename = "SURPLUS_RESERVE_YOY")]
    pub surplus_reserve_yoy: Option<String>, // 盈余公积金同比增长率
    #[serde(rename = "GENERAL_RISK_RESERVE_YOY")]
    pub general_risk_reserve_yoy: Option<String>, // 一般风险准备同比增长率
    #[serde(rename = "UNASSIGN_RPOFIT_YOY")]
    pub unassign_rprofit_yoy: Option<String>, // 未分配利润同比增长率
    #[serde(rename = "ADVICE_ASSIGN_DIVIDEND_YOY")]
    pub advice_assign_dividend_yoy: Option<String>, // 分配股利同比增长率
    #[serde(rename = "CONVERT_DIFF_YOY")]
    pub convert_diff_yoy: Option<String>, // 转换差额同比增长率
    #[serde(rename = "PARENT_EQUITY_OTHER_YOY")]
    pub parent_equity_other_yoy: Option<String>, // 母公司其他权益同比增长率
    #[serde(rename = "PARENT_EQUITY_BALANCE_YOY")]
    pub parent_equity_balance_yoy: Option<String>, // 母公司股东权益同比增长率
    #[serde(rename = "TOTAL_PARENT_EQUITY_YOY")]
    pub total_parent_equity_yoy: Option<String>, // 归属于母公司股东权益总计同比增长率
    #[serde(rename = "MINORITY_EQUITY_YOY")]
    pub minority_equity_yoy: Option<String>, // 少数股东权益同比增长率
    #[serde(rename = "EQUITY_OTHER_YOY")]
    pub equity_other_yoy: Option<String>, // 股东权益其他同比增长率
    #[serde(rename = "EQUITY_BALANCE_YOY")]
    pub equity_balance_yoy: Option<String>, // 股东权益同比增长率
    #[serde(rename = "TOTAL_EQUITY_YOY")]
    pub total_equity_yoy: Option<String>, // 股东权益合计同比增长率
    #[serde(rename = "LIAB_EQUITY_OTHER_YOY")]
    pub liab_equity_other_yoy: Option<String>, // 负债和股东权益其他同比增长率
    #[serde(rename = "LIAB_EQUITY_BALANCE_YOY")]
    pub liab_equity_balance_yoy: Option<String>, // 负债和股东权益同比增长率
    #[serde(rename = "TOTAL_LIAB_EQUITY_YOY")]
    pub total_liab_equity_yoy: Option<String>, // 负债和股东权益总计同比增长率
    #[serde(rename = "AGENT_BUSINESS_ASSET_YOY")]
    pub agent_business_asset_yoy: Option<String>, // 代理业务资产同比增长率
    #[serde(rename = "AGENT_BUSINESS_LIAB_YOY")]
    pub agent_business_liab_yoy: Option<String>, // 代理业务负债同比增长率
    #[serde(rename = "SHORT_FIN_PAYABLE_YOY")]
    pub short_fin_payable_yoy: Option<String>, // 应付短期融资款同比增长率
    #[serde(rename = "ACCRUED_EXPENSE_YOY")]
    pub accrued_expense_yoy: Option<String>, // 预提费用同比增长率
    #[serde(rename = "ACCOUNTS_PAYABLE_YOY")]
    pub accounts_payable_yoy: Option<String>, // 应付账款同比增长率
    #[serde(rename = "NOTE_PAYABLE_YOY")]
    pub note_payable_yoy: Option<String>, // 应付票据同比增长率
    #[serde(rename = "NOTE_RECE_YOY")]
    pub note_rece_yoy: Option<String>, // 应收票据同比增长率
}
